#!/usr/bin/env python
import os

env = Environment();
Export('env')

build_dir='../build'
Default(build_dir)
#Library
CCFLAGS = '-I/opt/local/include/opencv'  
LINKFLAGS = '-L/opt/local/lib -lcxcore -lcv -lhighgui -lcvaux -lml' 

env.Append(CCFLAGS=CCFLAGS)
env.Append(LINKFLAGS=LINKFLAGS)

#DEBUG
debug = ARGUMENTS.get('debug', 0)
if int(debug):
	env.Append(CCFLAGS = '-g')

SConscript(['src/SConscript'], build_dir='../build',duplicate=0)
